package cn.basic.social.api.dingtalk.channel.internal.response;

import cn.basic.social.api.dingtalk.DingResponse;

import java.io.Serializable;

/**
 * @ClassName InternalGetUserAccessTokenResponse
 * @Description 获取用户token返回值
 * @Author yk.zlf
 * @Date 2023/10/20 15:04
 */
public class InternalGetUserAccessTokenResponse extends DingResponse implements Serializable {

    /**
     * 生成的accessToken
     */
    private String accessToken;

    /**
     * 生成的refresh_token。可以使用此刷新token，定期的获取用户的accessToken
     */
    private String refreshToken;

    /**
     * 超时时间，单位秒
     */
    private Long expireIn;

    /**
     * 所选企业corpId
     */
    private String corpId;

    public InternalGetUserAccessTokenResponse() {
    }

    public InternalGetUserAccessTokenResponse(String accessToken, String refreshToken, Long expireIn, String corpId) {
        this.accessToken = accessToken;
        this.refreshToken = refreshToken;
        this.expireIn = expireIn;
        this.corpId = corpId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public Long getExpireIn() {
        return expireIn;
    }

    public void setExpireIn(Long expireIn) {
        this.expireIn = expireIn;
    }

    public String getCorpId() {
        return corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }
}
